import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
// 守卫路由
import "./router/premit";
Vue.config.productionTip = false;

import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";

import "./plugins/gaodeMap";
import messageBox from "./plugins/info";
import { showLoading, hideLoading } from "./plugins/loading";

// 二次封裝彈窗
Vue.prototype.$MessageBox = messageBox;
Vue.prototype.$showLoading = showLoading;
Vue.prototype.$hideLoading = hideLoading;

Vue.use(ElementUI);

new Vue({
  el: "#app",
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
